package com.zxp.server.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 朱小皮
 * @since 2022-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Blog对象", description="")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "博客id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "作者id")
    private Integer uid;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "首页图")
    @TableField("first_picture")
    private String firstPicture;

    @ApiModelProperty(value = "博客状态 0草稿 1已发布 2删除")
    private String flag;

    @ApiModelProperty(value = "浏览次数")
    private Integer views;

    @ApiModelProperty(value = "分类")
    private Integer typeId;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "评论状态")
    private Integer commentabled;

    @ApiModelProperty(value = "点赞数")
    private Integer thumbs;

    @ApiModelProperty(value = "推荐状态")
    private Integer recommend;

    @ApiModelProperty(value = "版权状态")
    private String copyright;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/shanghai")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/shanghai")
    private String updateTime;


}
